/*
 * @Description: 
 * @Author: 于子续
 * @Date: 2024-09-03 09:08:12
 * @LastEditors: 于子续
 * @LastEditTime: 2024-09-03 09:51:17
 */

package day07;

import java.math.BigDecimal;

public class Test02 {

    public static void main(String[] args) {
        int i;
        double sum=0;
        for ( i = 1; sum < 100; i++) {
            sum += 2.5;
            if (i % 5 == 0 ){
                sum -= 6;
            System.out.println("                  "+"韩大公公消费六元");
            }
            System.out.println("第"+i+"天:"+sum);
        }
        System.out.println("第"+(i-1)+"天存够");
    }


}
